package cn.com.wangluotongxin.database.eureka;

import cn.com.wangluotongxin.common.web.AjaxResult;
import cn.com.wangluotongxin.database.eureka.fallback.DatabaseClientFallback;
import cn.com.wangluotongxin.database.eureka.form.ReleaseDatabaseForm;
import cn.com.wangluotongxin.feign.FeignConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "wltx-database-operate", fallback = DatabaseClientFallback.class, configuration = FeignConfiguration.class)
public interface DatabaseClient {

    // 发布数据库
    @PostMapping("/databaseoperate/inner/dtabase/release")
    AjaxResult release(@RequestBody ReleaseDatabaseForm form);
}
